/* 
 * File:   editor_dialog.cpp
 * Author: jolo
 * 
 * Created on: 12. Oktober 2011, 16:02
 * Lincense: New BSD License (The BSD 2-Clause License)
 */

#include "editor_dialog.hpp"

#include <QtGui/QLayout>

#include <widgets/data_editor.hpp>

#include <model/entity.hpp>

namespace widgets
{

    editor_dialog::editor_dialog(model::entity_ptr e, QWidget* p)
    : dialog(p),
    e_(e),
    editor_(0)
    {
        setLayout(new QVBoxLayout(this));
    }

    editor_dialog::~editor_dialog()
    {
    }
    
    void editor_dialog::set_editor(data_editor* e) {
        editor_ = e;
    }
}